package com.ty.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ty.entity.Customer;
import com.ty.entity.Orders;

import java.util.List;

/**
 * (Orders)表服务接口
 *
 * @author makejava
 * @since 2020-12-01 22:17:52
 */
public interface OrdersService extends IService<Orders> {
    List<Orders> queryByMobileIsOrdersCustomer(String mobile);

    PageInfo<Orders> getPage(Orders orders, Integer page, Integer limit);

    boolean isCompletedOrderByPhone(String phone);

    boolean saveOrderCustoner(Customer customer, Orders orders);

    List<Orders> queryAll(Orders orders);

    Integer updateOrder(Orders orders);
}